const router = require('koa-router')();

router.get('/list', async (ctx) => {
    ctx.body = [{name: 'admin', description: 'top role'}];
});

router.post('/add', async (ctx) => {
    const postData = ctx.request.body;
    // db
    ctx.body = {code: 2000, message: 'add success'};
});

module.exports = router.routes();